package com.woniuxy.yogaapp.service;

import java.util.List;

import com.woniuxy.yogaapp.pojo.Chat;
import com.woniuxy.yogaapp.pojo.YogaClub;

public interface YogaClubService {
	public List<YogaClub> findAllYogaClub();

	// 根据会馆id查询对应教练信息
	public YogaClub findByCoach(int yid);

	// 根据会馆id查询对应教练id在查询出学员信息
	public YogaClub findByYid(int bid);


	public String agreeYogaClub(Chat chat);

	public String disagreeYogaClub(Chat chat);

	/**
	 * 根据用户id 查询该用户是否是新用户
	 * 
	 * @param yogaClub
	 * @return
	 */
	public YogaClub findYogaClubByUid(YogaClub yogaClub);

	/**
	 * 新用户 注册场馆 添加基本信息
	 * 
	 * @param yogaClub
	 * @return
	 */
	public String addYogaClubInfo(YogaClub yogaClub);

	/**
	 * 老用户 修改场馆基本信息
	 * 
	 * @param yogaClub
	 * @return
	 */
	public String updateYogaClubInfo(YogaClub yogaClub);
/**
 * 添加场馆认证信息     发短信给管理员    并发送通知
 * @param yogaClub
 * @return
 */
	public String approvePower(YogaClub yogaClub);
/**
 * 场馆 拒绝教练加入
 * @param chat
 * @return
 */
public String refuseApplyFor(Chat chat);
/**
 * 场馆同意 教练加入
 * @param chat
 * @return
 */
public String agreeApplyFor(Chat chat);

}
